package com.ruoyi.contract.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.contract.mapper.PaymentCollectionPlanMapper;
import com.ruoyi.contract.domain.PaymentCollectionPlan;
import com.ruoyi.contract.service.IPaymentCollectionPlanService;

/**
 * 收付款计划Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-18
 */
@Service
public class PaymentCollectionPlanServiceImpl implements IPaymentCollectionPlanService 
{
    @Autowired
    private PaymentCollectionPlanMapper paymentCollectionPlanMapper;

    /**
     * 查询收付款计划
     * 
     * @param paymentCollectionPlanId 收付款计划主键
     * @return 收付款计划
     */
    @Override
    public PaymentCollectionPlan selectPaymentCollectionPlanByPaymentCollectionPlanId(Long paymentCollectionPlanId)
    {
        return paymentCollectionPlanMapper.selectPaymentCollectionPlanByPaymentCollectionPlanId(paymentCollectionPlanId);
    }

    /**
     * 查询收付款计划列表
     * 
     * @param paymentCollectionPlan 收付款计划
     * @return 收付款计划
     */
    @Override
    public List<PaymentCollectionPlan> selectPaymentCollectionPlanList(PaymentCollectionPlan paymentCollectionPlan)
    {
        return paymentCollectionPlanMapper.selectPaymentCollectionPlanList(paymentCollectionPlan);
    }

    /**
     * 新增收付款计划
     * 
     * @param paymentCollectionPlan 收付款计划
     * @return 结果
     */
    @Override
    public int insertPaymentCollectionPlan(PaymentCollectionPlan paymentCollectionPlan)
    {
        return paymentCollectionPlanMapper.insertPaymentCollectionPlan(paymentCollectionPlan);
    }

    /**
     * 修改收付款计划
     * 
     * @param paymentCollectionPlan 收付款计划
     * @return 结果
     */
    @Override
    public int updatePaymentCollectionPlan(PaymentCollectionPlan paymentCollectionPlan)
    {
        return paymentCollectionPlanMapper.updatePaymentCollectionPlan(paymentCollectionPlan);
    }

    /**
     * 批量删除收付款计划
     * 
     * @param paymentCollectionPlanIds 需要删除的收付款计划主键
     * @return 结果
     */
    @Override
    public int deletePaymentCollectionPlanByPaymentCollectionPlanIds(Long[] paymentCollectionPlanIds)
    {
        return paymentCollectionPlanMapper.deletePaymentCollectionPlanByPaymentCollectionPlanIds(paymentCollectionPlanIds);
    }

    /**
     * 删除收付款计划信息
     * 
     * @param paymentCollectionPlanId 收付款计划主键
     * @return 结果
     */
    @Override
    public int deletePaymentCollectionPlanByPaymentCollectionPlanId(Long paymentCollectionPlanId)
    {
        return paymentCollectionPlanMapper.deletePaymentCollectionPlanByPaymentCollectionPlanId(paymentCollectionPlanId);
    }
}
